package com.cskaoyan.bean.wx_bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description：
 * @author: 曹旭
 * @date: 2022/5/9 16:39
 */
@NoArgsConstructor
@Data
@Builder
@AllArgsConstructor
public class SaveWxAddressBO {
    private Integer id;
    @NotBlank
    private String name;
    // 11位的数字
    @Pattern(regexp = "^1\\d{10}$")
    private String tel;
    private String province;
    private String city;
    private String county;
    private String areaCode;
    @NotBlank
    private String addressDetail;
    private Boolean isDefault;
}
